#!/bin/sh

GRINS_RUN=${GRINS_RUN:-$LIBMESH_RUN}
GRINS_SOLVER_OPTIONS="--use_petsc_dm --node_major_dofs \
-snes_atol 1.0e-6 -snes_view -snes_monitor -snes_converged_reason \
-pc_type mg -pc_mg_levels 3 -pc_mg_type full -pc_mg_galerkin both \
-mg_levels_ksp_type richardson -mg_levels_ksp_richardson_self_scale -mg_levels_ksp_monitor -mg_levels_ksp_converged_reason  \
-mg_coarse_ksp_type preonly -mg_coarse_pc_type lu \
-ksp_type richardson -ksp_richardson_self_scale -ksp_rtol 1.0e-8 -ksp_monitor_true_residual"


$GRINS_RUN @prefix@/bin/grins @prefix@/examples/multigrid/forced_poisson.in $GRINS_SOLVER_OPTIONS
